icon-theme: Show filename attempted when icon fails to load
authorRobert Ancell <robert.ancell@canonical.com>
Thu, 8 Jun 2017 00:08:22 +0000 (12:08 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Thu, 8 Jun 2017 21:24:02 +0000 (09:24 +1200)
gtk/gtkicontheme.c

index 8b12c02eab435748454f5a75570566a6428f93bb..2bd7a13aa30a2687876b3e21b8fe1274602f5653 100644 (file)
@@ -2306,6 +2306,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme        *icon_theme,
     }
 
   pixbuf = gtk_icon_info_load_icon (icon_info, error);
+  g_prefix_error (error, "Failed to load %s: ", icon_info->filename);
   g_object_unref (icon_info);
 
   return pixbuf;